#ifndef C_DESIGN_USER_H
#define C_DESIGN_USER_H

#include "../common/data_process.h"

void userLogic(struct user **userHead, struct order **orderHead, struct flight **flightHead);

void showUserMenu();

bool loginAsUser(struct user **head, char *account);

void searchFlight(struct flight **head);

void bookFlight(struct flight **flightHead, struct order **orderHead, char *username);

void showAllOrdersForUser(struct order **head, char *username);

void changeInfoForUser(struct user **head, char *username);

bool cancelAccountForUser(struct user **head, char *username);

bool cancelOrderForUser(struct order **orderHead, struct flight **flightHead);

#endif //C_DESIGN_USER_H
